<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});

Route::post('/hook/index', 'Api\WebHooksController@index');
Route::get('/test', 'TestController@test');
Route::get('/rpc', 'ApiController@rpc');
Route::get('/test-ela', 'TestController@testEla')->middleware('client');
Route::get('/test-zip', 'TestController@testZip');
Route::get('/unzip', 'TestController@unzip');
Route::get('/bloom-filter', 'BloomFilterController@testBloom');
Route::get('/testSync', 'TestController@testSync');
Route::get('/testSwoole', 'ApiController@testSwoole');
Route::get('/testGo', 'ApiController@testGo');
Route::get('/test-img', 'TestController@testImg');

